const columns = [
    {
        prop: 'id',
        label: '考试编号'
    },
    {
        prop: 'name',
        label: '考试名称',
        width: 180
    },
    {
        prop: 'startTime',
        label: '计划期限',
        width: 180
    },
    {
        prop: 'examMinutes',
        label: '考试时长（分）'
    },
    {
        prop: 'creatorName',
        label: '创建人'
    },
    {
        prop: 'enabled',
        label: '启用'
    },
    {
        label: '操作',
        width: 200,
        operations: [
            {
                prop: 'preview',
                label: '预览'
            },
            {
                prop: 'edit',
                label: '编辑'
            },
            {
                prop: 'delete',
                label: '删除'
            }
        ]
    }
]

const addExamFormItems = [
    {
        prop: 'name',
        label: '考试名称',
        name: 'input',
        validation: true
    },
    {
        label: '启用:',
        prop: 'enabled',
        name: 'checkbox'
    },
    {
        prop: 'startTime',
        label: '考试时间',
        name: 'dateTime',
        validation: true
    },
    {
        prop: 'examMinutes',
        label: '考试时长（分）',
        name: 'input',
        validation: true
    },
    {
        prop: 'loginOffsetMinutes',
        label: '登录时差（分）',
        name: 'input',
        validation: true
    },
    {
        label: '选择试卷:',
        placeholder: '请输入关键词',
        multiple: false,
        prop: 'paperId',
        name: 'search',
        validation: true
    },
    {
        label: '选择学员:',
        prop: 'multistageProps',
        name: 'popup',
        disable: 'disable',
        validation: false
    },
    {
        prop: 'comment',
        label: '考试简介',
        type: 'textarea',
        name: 'input'
    }
]
const enableOptions = [
    {
        id: true,
        name: '是'
    },
    {
        id: false,
        name: '否'
    }
]

const multistageProps = {
    label: 'title',
    children: 'children'
}

const options = [
    {
        value: 'refresh',
        label: '刷新'
    },
    {
        value: 'batchdelete',
        label: '批量删除'
    }
]
const multistageColumns = [
    {
        label: '姓名',
        prop: 'name',
        align: 'center',
        width: '380'
    }
]
export default {
    columns,
    options,
    addExamFormItems,
    multistageProps,
    enableOptions,
    multistageColumns
}
